import React from 'react'
import { Routes, Route, Navigate } from "react-router-dom"

import Login from "./components/Login"
import Main from "./components/Main"
import NotFound from "./components/404"

export default function App() {
  return (
    <div className='outer'>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/main" element={<Main />} />
        <Route path="/" element={<Navigate to="/login" />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </div>
  )
}
